package day04;

import java.util.Scanner;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/18
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入5个数：");
        int[] arr = new int[5];
        for (int i = 0; i < 5; i++) {
            arr[i] = sc.nextInt();
        }
        int max=arr[0];
        for (int j = 0; j < 5; j++) {
            if(max<arr[j]){
                max=arr[j];
            }
        }
        System.out.println(max);
        sc.close();

    }
}
